<link rel="stylesheet" href="/css/user.css">
<script src="/js/jquery.validate.min.js" type="text/javascript"></script>
<script type="text/javascript"> 
    $(document).ready(function() {
        $("#profile").validate();
        $("#fname").rules("add", {required:true, rangelength: [2, 20]});
        $("#lname").rules("add", {required:true, rangelength: [3, 20]});
        $("#organization").rules("add", {required:true, rangelength: [4, 80]});
        $("#vat").rules("add", {required:true, rangelength: [4, 11]});
        $("#telephone").rules("add", {required:true, rangelength: [4, 14]});
        $("#email_work").rules("add", {required:true, email:true});
    });
</script>

<?php echo $this->render('header.phtml'); ?>
<?php echo $this->render('user/subnav.phtml'); ?>
<section id="main" class="profile">
    <div class="title">User Details</div>
    <?php 
        echo $this->error;
    ?>
    <form id="profile" method="<?= $this->escape($this->form->getMethod()) ?>">
    <div class="left">
<?php   
        echo $this->form->fname;  
        echo $this->form->lname;  
        echo $this->form->organization;  
        echo $this->form->vat;  
        echo $this->form->telephone; 
        echo $this->form->mobile; 
         
          
        
?>
    </div>
    <div class="right">
<?php   
        echo $this->form->email_work;   
        echo $this->form->email_home; 
        echo $this->form->fax;   
        echo $this->form->skype; 
        echo $this->form->notes;  
?>
    </div>
    <div class="clear"></div>
<?php echo $this->form->submit; ?> 
    </form>
</section>
<?php echo $this->render('footer.phtml'); ?>